import { post } from "@/request/http"
import { apiMediatorSpeedManage, pageMediatorSpeedManage } from "../type"
import { RequestBody, ResponseBody } from "../../type"

/**
 * @name 资源管理-设备资源属性管理-融为高速解调器通道管理
 * ---------------
 */
const url = '/backend/resource-property-manage/demodulator-channel-high-rate-double-channel-rw'

const integratedIntoADemodulatorAPI = {
    get: (params: RequestBody<apiMediatorSpeedManage>) => post<pageMediatorSpeedManage[]>(url + "/get", params),
    update: (params: RequestBody<apiMediatorSpeedManage>) => post<ResponseBody<pageMediatorSpeedManage>>(url + "/update", params),
    add: (params: RequestBody<apiMediatorSpeedManage>) => post<ResponseBody<pageMediatorSpeedManage>>(url + "/add", params),
    delete: (params: RequestBody<apiMediatorSpeedManage>) => post<ResponseBody<pageMediatorSpeedManage>>(url + "/delete", params),
    copy: (params: RequestBody<apiMediatorSpeedManage>) => post<ResponseBody<pageMediatorSpeedManage>>(url + "/copy", params),
}

export default integratedIntoADemodulatorAPI